import axios from '@iframe/tools/axios/axios.js'

/**
 * 获取用户菜单
 */
export function getUserMenu() {
    return axios.request({
        url: `/${import.meta.env.IFRAME_CONTEXT_PATH}/sys/menu/getUserMenu`,
        method: 'get'
    })
}

export function getUserButton() {
    return axios.request({
        url: `/${import.meta.env.IFRAME_CONTEXT_PATH}/sys/menu/getButton`,
        method: 'get'
    })
}
